<template>
  <div class="top-detail--banner">
    <div class="banner" ref="banner"></div>
  </div>
</template>

<script>
export default {
  props: {
    topContent: {
      type: String,
    },
  },
  mounted() {
    this.$nextTick(() => {
      setTimeout(() => {
        this.$refs.banner.innerHTML = this.topContent;
        console.log(this.$refs.banner);
      }, 500);
    });
  },
};
</script>

<style lang="scss" scoped>
img {
  width: 200px;
}
</style>